home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / widget / mozdrawingarea.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  94 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /* vim:expandtab:shiftwidth=4:tabstop=4:
  3.  */
  4. /* ***** BEGIN LICENSE BLOCK *****
  5.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  6.  *
  7.  * The contents of this file are subject to the Mozilla Public License Version
  8.  * 1.1 (the "License"); you may not use this file except in compliance with
  9.  * the License. You may obtain a copy of the License at
  10.  * http://www.mozilla.org/MPL/
  11.  *
  12.  * Software distributed under the License is distributed on an "AS IS" basis,
  13.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  14.  * for the specific language governing rights and limitations under the
  15.  * License.
  16.  *
  17.  * The Original Code is mozilla.org code.
  18.  *
  19.  * The Initial Developer of the Original Code is Christopher Blizzard
  20.  * <blizzard@mozilla.org>.  Portions created by the Initial Developer
  21.  * are Copyright (C) 2001 the Initial Developer. All Rights Reserved.
  22.  *
  23.  * Contributor(s):
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  27.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. #ifndef __MOZ_DRAWINGAREA_H__
  40. #define __MOZ_DRAWINGAREA_H__
  41.  
  42. #include <gdk/gdkwindow.h>
  43. #include "mozcontainer.h"
  44.  
  45. #ifdef __cplusplus
  46. extern "C" {
  47. #endif /* __cplusplus */
  48.  
  49. #define MOZ_DRAWINGAREA_TYPE            (moz_drawingarea_get_type())
  50. #define MOZ_DRAWINGAREA(obj)            (GTK_CHECK_CAST((obj), MOZ_DRAWINGAREA_TYPE, MozDrawingarea))
  51. #define MOZ_DRAWINGAREA_CLASS(klass)    (GTK_CHECK_CLASS_CAST((klass), MOZ_DRAWINGAREA_TYPE, MozDrawingareaClass))
  52. #define IS_MOZ_DRAWINGAREA(obj)         (GTK_CHECK_TYPE((obj), MOZ_DRAWINGAREA_TYPE))
  53. #define IS_MOZ_DRAWINGAREA_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), MOZ_DRAWINGAREA_TYPE))
  54. #define MOZ_DRAWINGAREA_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS((obj), MOZ_DRAWINGAREA_TYPE, MozDrawingareaClass))
  55.  
  56. typedef struct _MozDrawingarea      MozDrawingarea;
  57. typedef struct _MozDrawingareaClass MozDrawingareaClass;
  58.  
  59. struct _MozDrawingarea
  60. {
  61.     GObject         parent_instance;
  62.     GdkWindow      *clip_window;
  63.     GdkWindow      *inner_window;
  64.     MozDrawingarea *parent;
  65. };
  66.  
  67. struct _MozDrawingareaClass
  68. {
  69.     GObjectClass parent_class;
  70. };
  71.  
  72. GtkType         moz_drawingarea_get_type       (void);
  73. MozDrawingarea *moz_drawingarea_new            (MozDrawingarea *parent,
  74.                                                 MozContainer *widget_parent);
  75. void            moz_drawingarea_reparent       (MozDrawingarea *drawingarea,
  76.                                                 GdkWindow *aNewParent);
  77. void            moz_drawingarea_move           (MozDrawingarea *drawingarea,
  78.                                                 gint x, gint y);
  79. void            moz_drawingarea_resize         (MozDrawingarea *drawingarea,
  80.                                                 gint width, gint height);
  81. void            moz_drawingarea_move_resize    (MozDrawingarea *drawingarea,
  82.                                                 gint x, gint y,
  83.                                                 gint width, gint height);
  84. void            moz_drawingarea_set_visibility (MozDrawingarea *drawingarea,
  85.                                                 gboolean visibility);
  86. void            moz_drawingarea_scroll         (MozDrawingarea *drawingarea,
  87.                                                 gint x, gint y);
  88.  
  89. #ifdef __cplusplus
  90. }
  91. #endif /* __cplusplus */
  92.  
  93. #endif /* __MOZ_DRAWINGAREA_H__ */
  94.